<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>组织管理</title>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
    <script src="/static/component/pear/module/ruinuo/sortable.js"></script>
    <link rel="stylesheet" href="/static/component/pear/css//module/engine_table.css"/>
</head>
<body class="pear-container">
<div class="view_body"></div>
<script type="text/html" id="view_body_data">
    <div class="body_con">
        {{# if(d.left.status== 1){ }}
        <div class="left">
            <div class="layui-card">
                <div class="layui-card-header display_flex">
                    <div class="flex_1">{{d.left.title}}</div>
                    {{# if(d.left.type== 2){ }}
                    <div class="layui-icon layui-icon-add-1 tree_add"></div>
                    {{# } }}
                </div>
                <div class="layui-card-body">
                    <div class="layui-menu">
                        <ul></ul>
                    </div>
                </div>
            </div>
        </div>
        {{# } }}

        <div class="right">
            <div class="table_body">
                {{# if(d.header.tab.length != 0 || d.header.sum.length != 0){ }}
                <div class="table_head display_flex">
                    {{# if(d.header.tab.length != 0){ }}
                    <div class="head_menu flex_1 display_flex">
                        {{# layui.each(d.header.tab, function(index, item){ }}
                        <li {{# if(item.on){ }}class="on" {{# } }} data_current="{{item.current}}"
                            onclick="layui.engine_table.TableMenu(this)">
                            {{item.name}}<span class="layui-badge pear-btn-primary" id="tab_{{item.current}}">0</span>
                        </li>
                        {{# }); }}
                    </div>
                    {{# } }}
                    {{# if(d.header.sum.length != 0){ }}
                    <div class="head_sum display_flex">
                        {{# layui.each(d.header.sum, function(index, item){ }}
                        <li>{{item.name}}：<span class="layui-badge pear-btn-primary" id="sum_{{item.field}}">0</span>
                        </li>
                        {{# }); }}
                    </div>
                    {{# } }}
                </div>
                {{# } }}

                <div class="table_view layui-form" style="margin-top: 0px">
                    <div class="head_button display_flex">
                        <div class="flex_1">
                            {{# let drop=2;}}
                            {{# layui.each(d.header.button, function(index, item){ }}
                            {{# if(item.is_drop === 2){ }}
                            <button class="pear-btn pear-btn-sm {{item.btn_class}}"
                                    onclick="layui.engine_table.ButtonAciton({{index}},1,'{{d.table.elem}}')">
                                {{# if(item.icon){ }}<i class="ruinuo-icon {{item.icon}}"></i>{{# } }}{{item.title}}
                            </button>
                            {{# } }}
                            {{# if(item.is_drop === 1){ }}
                            {{# drop=1;}}
                            {{# } }}
                            {{# }); }}
                            {{# if(drop === 1){ }}
                            <button class="pear-btn pear-btn-sm head_more_button">
                                <i class="ruinuo-icon icon-arrow-down"></i>更多
                            </button>
                            {{# } }}
                        </div>
                        {{# if(d.header.search.datetime.length != 0 || d.header.search.like){ }}
                        <div class="layui-form display_flex">
                            <div class="flex_1 display_flex table_from">
                                {{# if(d.header.search.datetime.length != 0){ }}
                                <div class="datetime_select">
                                    <div class="layui-input-block">
                                        <select name="search_time_field" lay-filter="select_filter">
                                            {{# layui.each(d.header.search.datetime, function(index, item){ }}
                                            <option value="{{item.value}}">{{item.label}}</option>
                                            {{# }); }}
                                        </select>
                                    </div>
                                </div>
                                <div class="datetime_input">
                                    <div class="layui-input-block  layui-input-wrap">
                                        <div class="layui-input-prefix"><i class="ruinuo-icon icon-riqi"></i></div>
                                        <input id="search_time_field_val" name="search_time_field_val" type="text" readonly="" placeholder="开始日期 - 结束日期" autocomplete="off" lay-affix="clear" class="layui-input" >
                                    </div>
                                </div>
                                {{# } }}
                                {{# if(d.header.search.like){ }}
                                <div class="keyword_input">
                                    <div class="layui-input-block">
                                        <input name="keyword" type="text" tips_title="请输入{{d.header.search.like}}搜索" placeholder="请输入关键词搜索" autocomplete="off" lay-affix="clear" class="layui-input">
                                    </div>
                                </div>
                                {{# } }}

                            </div>
                            <div>
                                <button class="pear-btn pear-btn-primary pear-btn-sm"
                                        onclick="layui.engine_table.SearchLoad('{{d.table.elem}}');">
                                    <i class="ruinuo-icon icon-search"></i>搜索
                                </button>
                                <button class="pear-btn pear-btn-sm"
                                        onclick="layui.engine_table.SearchBack('{{d.table.elem}}');">
                                    <i class="ruinuo-icon icon-back"></i>重置
                                </button>
                            </div>
                        </div>
                        {{# } }}
                    </div>
                    {{# if(d.table.style<=3){ }}
                    <table id="{{d.table.elem}}" lay-filter="{{d.table.elem}}"></table>
                    {{# } }}
                    {{# if(d.table.style>=4){ }}
                    <div class="card_table">
                        <div class="card_table_con"></div>
                    </div>
                    {{# } }}
                </div>
            </div>
        </div>
    </div>
</script>


    <script src="/static/js/admin/department/config.js?t={:time()}"></script>
    <script src="/static/js/admin/department/lists.js?t={:time()}"></script>
</body>
</html>
